<template>
  <div class="notfound-container">
    <img src="../../assets/404.jpg" alt="" />
    <van-button type="primary" @click="toHome">返回首页</van-button>
  </div>
</template>

<script>
export default {
  name: 'notfound',
  methods: {
    toHome () {
      this.$router.push({ path: '/home' })
    }
  }
}
</script>

<style lang="less" scope>
.notfound-container {
  text-align: center;
  height: 100vh;
  background-color: #fff;
  .van-button {
    margin-top: 40px;
  }
  img {
    width: 100%;
  }
}
body,
html {
  height: 100%;
}
</style>
